package com.ytjj.qmyx.mall.controller;

import com.ytjj.common.api.CommonResult;
import com.ytjj.qmyx.mall.service.ReportService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 *
 *  *
 **/
@RequestMapping("/report")
@RestController
public class ReportController {

    @Resource
    private ReportService reportService;

    /**
     * 上报头条
     */
    @GetMapping("tt")
    public CommonResult ttReport(@RequestParam String adid,
                                 @RequestParam String creativeid,
                                 @RequestParam String creativetype,
                                 @RequestParam String clickid,
                                 @RequestParam String channel) throws Exception {
        reportService.ttReport(adid,creativeid,creativetype,clickid,channel);
        return CommonResult.success();
    }

}
